home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / E-G / Externals.cpt / Externals / card_4920.txt < prev    next >
Text File  |  1989-02-26  |  1KB  |  64 lines

  1. -- card: 4920 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2795
  5. -- name: ShowMenu
  6.  
  7.  
  8. -- part 3 (button)
  9. -- low flags: 00
  10. -- high flags: 8003
  11. -- rect: left=315 top=307 right=329 bottom=379
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Demo
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   push this card
  23.   visual effect iris open
  24.   go to card id 10546
  25. end mouseUp
  26.  
  27.  
  28.  
  29. -- part contents for background part 20
  30. ----- text -----
  31. 2
  32.  
  33. -- part contents for background part 1
  34. ----- text -----
  35. XCMD
  36.  
  37. -- part contents for background part 22
  38. ----- text -----
  39. ShowMenu(menuNumber)
  40.  
  41. -- part contents for background part 13
  42. ----- text -----
  43. ShowMenu is an XCMD (external command) that will redisplay any menus you've added to HyperCard using the NewMenu XFCN.  HyperCard doesn't know you've added menus, and if you change userLevels or use the paint tools HyperCard will erase your menus accidentally.  It doesn't mean it, it just doesn't know any better.  An example of using ShowMenu would be:
  44.  
  45. on idle
  46.   global myMenu
  47.   ShowMenu myMenu 
  48.   pass idle
  49. end idle
  50.  
  51. Again, the menu number should be the same number that was returned by NewMenu.
  52.  
  53. For a more efficent method of use, see the sample script provided with NewMenu.
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.